home *** CD-ROM | disk | FTP | other *** search
/ Champak 140 / (Vol 140) Sep 19 2011.iso / Games / theLifeArk.swf / scripts / __Packages / prop / ufoAni.as < prev   
Encoding:
Text File  |  2011-09-19  |  646 b   |  35 lines

  1. class prop.ufoAni extends MovieClip
  2. {
  3.    var cnt;
  4.    var cntMax;
  5.    var onEnterFrame;
  6.    function ufoAni()
  7.    {
  8.       super();
  9.       this.cnt = 0;
  10.       this.cntMax = 200;
  11.    }
  12.    function startAni()
  13.    {
  14.       this.onEnterFrame = this.OEF;
  15.    }
  16.    function OEF()
  17.    {
  18.       if(this.cnt < this.cntMax)
  19.       {
  20.          this.cnt = this.cnt + 1;
  21.       }
  22.       else
  23.       {
  24.          this.play();
  25.          this.onEnterFrame = null;
  26.       }
  27.    }
  28.    function dropProps()
  29.    {
  30.       _global.scene.pwStone._visible = true;
  31.       _global.scene.arkShape._visible = true;
  32.       _global.scene.manAni._visible = true;
  33.    }
  34. }
  35.